package com.neusoft.tijian.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.neusoft.tijian.mapper.SetmealMapper;
import com.neusoft.tijian.po.Setmeal;
import com.neusoft.tijian.service.SetmealService;

@Service
public class SetmealServiceImpl implements SetmealService{

	@Autowired
	private SetmealMapper setmealMapper;

	/**
	 * 根据类型男女，查询套餐信息
	 * @param type
	 * @return
	 */
	@Override
	public List<Setmeal> listSetmealByType(Integer type) {
		return setmealMapper.listSetmealByType(type);
	}
	
	@Override
	public Setmeal getSetmealById(Integer smId) {
		return setmealMapper.getSetmealById(smId);
	}
}
